import {result} from './core'
import {GET,path, POST} from './config'

const getlist={
    getshoplist(){
        return result(GET,path.list)
    },
    getnum(){
        return result(POST,path.more)
    },
    Captcha(params){
        return result(POST,path.Captcha,params)
    },
    // 注册
    RegisteredSuccessfully(params){
        return result(POST,path.RegisteredSuccessfully,params)
    },
    // 登录
    Login(params){
        return result(POST,path.Login,params)
    },
    // 验证token
    SureToken(params){
        return result(POST,path.SureToken,params)
    },
    // 人气推荐
    Goodlist(){
        return result(GET,path.Goodlist)
    },
    // 精选推荐
    Selectedtopicslist(){
        return result(GET,path.Selectedtopicslist)
    },
    // 精选推荐详情
    recommendeddetails(params){
        // console.log(params)
        return result(POST,path.recommendeddetails,params)
    },
    // 商品详情
    Storedetails(params){
        return result(POST,path.Storedetails,params)
    },
    // 获取登录信息
    getloginmess(params){
        return result(POST,path.getloginmess,params)
    },
    // 分类列表数据
    Category(){
        return result(POST,path.Category)
    }
}
export default getlist
